package com.handtransaction.service.impl;

import com.handtransaction.dao.GoodsTipOffDao;
import com.handtransaction.entity.TOGoods;
import com.handtransaction.service.TipOffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TipOffServiceImpl implements TipOffService {

    @Autowired
    GoodsTipOffDao gtodao;

    /**
     * 商品举报
     */
    @Override
    public List<TOGoods> showAllTOGoods() {
        return gtodao.queryAllTOGoods();
    }

    @Override
    public TOGoods queryTOGoodsBytid(Integer tid) {
        return gtodao.queryTOGoodsBytid(tid);
    }

    @Override
    public int createTOGood(TOGoods toGoods) {
        return gtodao.createTOGoods(toGoods);
    }

    @Override
    public int deleteTOGood(Integer tid) {
        return gtodao.deleteTOGoodsBytid(tid);
    }

    @Override
    public int deleteOffShelfTOGoods(Integer tgid) {
        return gtodao.deleteTOGoodsBytgid(tgid);
    }

    /**
     * 需求举报
     */

}
